/*
 Navicat Premium Data Transfer

 Source Server         : 192.168.1.246(U8)
 Source Server Type    : SQL Server
 Source Server Version : 11002100
 Source Host           : 192.168.1.246:1433
 Source Catalog        : dj
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 11002100
 File Encoding         : 65001

 Date: 14/06/2024 10:28:04
*/


-- ----------------------------
-- Table structure for duty_ago
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[duty_ago]') AND type IN ('U'))
	DROP TABLE [dbo].[duty_ago]
GO

CREATE TABLE [dbo].[duty_ago] (
  [id] varchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [card_time] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [cus_code] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [vendor_code] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [duty_sum] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [duty_d_l_sum] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [duty_i_d_l_sum] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [daytime_d_l_sum] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [daytime_i_d_l_sum] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [daytime_sum] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [night_d_l_sum] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [night_i_d_l_sum] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [night_sum] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [day_sum] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [manufacturer] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[duty_ago] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'打卡日期',
'SCHEMA', N'dbo',
'TABLE', N'duty_ago',
'COLUMN', N'card_time'
GO

EXEC sp_addextendedproperty
'MS_Description', N'u8 code',
'SCHEMA', N'dbo',
'TABLE', N'duty_ago',
'COLUMN', N'cus_code'
GO

EXEC sp_addextendedproperty
'MS_Description', N'Vendor Code 东矩 code',
'SCHEMA', N'dbo',
'TABLE', N'duty_ago',
'COLUMN', N'vendor_code'
GO

EXEC sp_addextendedproperty
'MS_Description', N'在职人数',
'SCHEMA', N'dbo',
'TABLE', N'duty_ago',
'COLUMN', N'duty_sum'
GO

EXEC sp_addextendedproperty
'MS_Description', N'在职直接人数',
'SCHEMA', N'dbo',
'TABLE', N'duty_ago',
'COLUMN', N'duty_d_l_sum'
GO

EXEC sp_addextendedproperty
'MS_Description', N'在职间接人数',
'SCHEMA', N'dbo',
'TABLE', N'duty_ago',
'COLUMN', N'duty_i_d_l_sum'
GO

EXEC sp_addextendedproperty
'MS_Description', N'白班直接人数',
'SCHEMA', N'dbo',
'TABLE', N'duty_ago',
'COLUMN', N'daytime_d_l_sum'
GO

EXEC sp_addextendedproperty
'MS_Description', N'白班间接人数',
'SCHEMA', N'dbo',
'TABLE', N'duty_ago',
'COLUMN', N'daytime_i_d_l_sum'
GO

EXEC sp_addextendedproperty
'MS_Description', N'白班总人数',
'SCHEMA', N'dbo',
'TABLE', N'duty_ago',
'COLUMN', N'daytime_sum'
GO

EXEC sp_addextendedproperty
'MS_Description', N'夜班直接人数',
'SCHEMA', N'dbo',
'TABLE', N'duty_ago',
'COLUMN', N'night_d_l_sum'
GO

EXEC sp_addextendedproperty
'MS_Description', N'夜班间接人数',
'SCHEMA', N'dbo',
'TABLE', N'duty_ago',
'COLUMN', N'night_i_d_l_sum'
GO

EXEC sp_addextendedproperty
'MS_Description', N'夜班总人数',
'SCHEMA', N'dbo',
'TABLE', N'duty_ago',
'COLUMN', N'night_sum'
GO

EXEC sp_addextendedproperty
'MS_Description', N'当日总人数',
'SCHEMA', N'dbo',
'TABLE', N'duty_ago',
'COLUMN', N'day_sum'
GO


-- ----------------------------
-- Primary Key structure for table duty_ago
-- ----------------------------
ALTER TABLE [dbo].[duty_ago] ADD CONSTRAINT [PK__duty_ago__3213E83F74828DD4] PRIMARY KEY CLUSTERED ([id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

